home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1985-08-17 | 5.3 KB | [ TEXT/EDIT]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
66%
dexvert
Compact Compressed (Unix) (archive/compact)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Sat Aug 17 09:03:56 1985, modified Sat Aug 17 09:03:56 1985, creator Macintosh Edit, type ASCII, 4660 bytes "DemoCursor.C" , at 0x12b4 490 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ EDIT]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0c 44 65 6d 6f 43 75 | 72 73 6f 72 2e 43 00 00 |..DemoCu|rsor.C..| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 45 44 49 | 54 01 00 00 00 00 00 00 |.TEXTEDI|T.......| |00000050| 00 00 00 00 00 12 34 00 | 00 01 ea 99 8a 48 bc 99 |......4.|.....H..| |00000060| 8a 48 bc 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.H......|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 44 c0 00 00 |........|....D...| |00000080| 2f 2a 0d 20 2a 20 20 20 | 20 20 20 20 2a 2a 2a 2a |/*. * | ****| |00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0d 20 |********|******. | |000000a0| 2a 09 09 09 2a 20 20 44 | 65 6d 6f 43 75 72 73 6f |*...* D|emoCurso| |000000b0| 72 2e 43 20 20 2a 0d 20 | 2a 09 09 09 2a 2a 2a 2a |r.C *. |*...****| |000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0d 20 |********|******. | |000000d0| 2a 0d 20 2a 20 43 75 72 | 73 6f 72 20 68 61 6e 64 |*. * Cur|sor hand| |000000e0| 6c 69 6e 67 20 66 75 6e | 63 74 69 6f 6e 73 20 66 |ling fun|ctions f| |000000f0| 6f 72 20 74 68 65 20 44 | 65 6d 6f 20 50 72 6f 67 |or the D|emo Prog| |00000100| 72 61 6d 2e 0d 20 2a 20 | 54 68 69 73 20 6d 6f 64 |ram.. * |This mod| |00000110| 75 6c 65 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |ule cont|ains the| |00000120| 20 63 75 72 73 6f 72 20 | 64 65 66 69 6e 69 74 69 | cursor |definiti| |00000130| 6f 6e 73 20 66 6f 72 20 | 74 68 65 20 73 70 65 63 |ons for |the spec| |00000140| 69 61 6c 0d 20 2a 20 63 | 75 72 73 6f 72 73 20 74 |ial. * c|ursors t| |00000150| 68 61 74 20 77 65 20 75 | 73 65 2c 20 70 6c 75 73 |hat we u|se, plus| |00000160| 20 74 68 65 20 69 6e 69 | 74 69 61 6c 69 7a 61 74 | the ini|tializat| |00000170| 69 6f 6e 20 63 6f 64 65 | 20 77 68 69 63 68 20 0d |ion code| which .| |00000180| 20 2a 20 72 65 61 64 73 | 20 74 68 65 20 22 49 2d | * reads| the "I-| |00000190| 62 65 61 6d 22 20 63 75 | 72 73 6f 72 20 66 72 6f |beam" cu|rsor fro| |000001a0| 6d 20 74 68 65 20 73 79 | 73 74 65 6d 20 72 65 73 |m the sy|stem res| |000001b0| 6f 75 72 63 65 20 66 69 | 6c 65 20 61 6e 64 0d 20 |ource fi|le and. | |000001c0| 2a 20 6d 61 6b 65 73 20 | 69 74 20 61 76 61 69 6c |* makes |it avail| |000001d0| 61 62 6c 65 20 66 6f 72 | 20 6f 75 72 20 70 72 6f |able for| our pro| |000001e0| 67 72 61 6d 2e 0d 20 2a | 0d 20 2a 20 42 6f 62 20 |gram.. *|. * Bob | |000001f0| 44 65 6e 6e 79 09 31 37 | 2d 4e 6f 76 2d 38 34 0d |Denny.17|-Nov-84.| |00000200| 20 2a 2f 0d 20 0d 23 69 | 6e 63 6c 75 64 65 20 3c | */. .#i|nclude <| |00000210| 44 65 6d 6f 2e 48 3e 0d | 0d 2f 2a 0d 20 2a 20 43 |Demo.H>.|./*. * C| |00000220| 75 72 73 6f 72 20 54 61 | 62 6c 65 73 0d 20 2a 2f |ursor Ta|bles. */| |00000230| 0d 73 74 61 74 69 63 20 | 43 75 72 73 6f 72 20 64 |.static |Cursor d| |00000240| 72 61 67 5f 63 75 72 73 | 20 3d 20 09 09 09 09 09 |rag_curs| = .....| |00000250| 2f 2f 20 44 72 61 67 20 | 52 65 67 69 6f 6e 20 63 |// Drag |Region c| |00000260| 75 72 73 6f 72 0d 09 7b | 30 78 30 31 30 30 2c 20 |ursor..{|0x0100, | |00000270| 30 78 30 33 38 30 2c 20 | 30 78 30 37 43 30 2c 20 |0x0380, |0x07C0, | |00000280| 30 78 30 31 30 30 2c 20 | 30 78 30 31 30 30 2c 20 |0x0100, |0x0100, | |00000290| 30 78 32 37 43 38 2c 20 | 30 78 36 34 34 43 2c 20 |0x27C8, |0x644C, | |000002a0| 30 78 46 43 37 45 2c 0d | 09 20 30 78 36 34 34 43 |0xFC7E,.|. 0x644C| |000002b0| 2c 20 30 78 32 37 43 38 | 2c 20 30 78 30 31 30 30 |, 0x27C8|, 0x0100| |000002c0| 2c 20 30 78 30 31 30 30 | 2c 20 30 78 30 37 43 30 |, 0x0100|, 0x07C0| |000002d0| 2c 20 30 78 30 33 38 30 | 2c 20 30 78 30 31 30 30 |, 0x0380|, 0x0100| |000002e0| 2c 20 30 78 30 30 30 30 | 2c 0d 09 20 0d 09 20 30 |, 0x0000|,.. .. 0| |000002f0| 78 30 31 30 30 2c 20 30 | 78 30 33 38 30 2c 20 30 |x0100, 0|x0380, 0| |00000300| 78 30 37 43 30 2c 20 30 | 78 30 31 30 30 2c 20 30 |x07C0, 0|x0100, 0| |00000310| 78 30 31 30 30 2c 20 30 | 78 32 37 43 38 2c 20 30 |x0100, 0|x27C8, 0| |00000320| 78 36 37 43 43 2c 20 30 | 78 46 46 46 45 2c 0d 09 |x67CC, 0|xFFFE,..| |00000330| 20 30 78 36 37 43 43 2c | 20 30 78 32 37 43 38 2c | 0x67CC,| 0x27C8,| |00000340| 20 30 78 30 31 30 30 2c | 20 30 78 30 31 30 30 2c | 0x0100,| 0x0100,| |00000350| 20 30 78 30 37 43 30 2c | 20 30 78 30 33 38 30 2c | 0x07C0,| 0x0380,| |00000360| 20 30 78 30 31 30 30 2c | 20 30 78 30 30 30 30 2c | 0x0100,| 0x0000,| |00000370| 0d 09 20 0d 09 20 37 2c | 20 37 7d 3b 0d 0d 73 74 |.. .. 7,| 7};..st| |00000380| 61 74 69 63 20 43 75 72 | 73 6f 72 20 76 73 5f 63 |atic Cur|sor vs_c| |00000390| 75 72 73 20 3d 20 09 09 | 09 09 09 2f 2f 20 56 65 |urs = ..|...// Ve| |000003a0| 72 74 69 63 61 6c 20 73 | 63 72 6f 6c 6c 65 72 20 |rtical s|croller | |000003b0| 63 75 72 73 6f 72 0d 09 | 7b 30 78 30 30 30 30 2c |cursor..|{0x0000,| |000003c0| 20 30 78 30 30 30 30 2c | 20 30 78 30 31 30 30 2c | 0x0000,| 0x0100,| |000003d0| 20 30 78 30 33 38 30 2c | 20 30 78 30 37 43 30 2c | 0x0380,| 0x07C0,| |000003e0| 20 30 78 30 46 45 30 2c | 20 30 78 30 33 38 30 2c | 0x0FE0,| 0x0380,| |000003f0| 20 30 78 30 33 38 30 2c | 0d 09 20 30 78 30 33 38 | 0x0380,|.. 0x038| |00000400| 30 2c 20 30 78 30 33 38 | 30 2c 20 30 78 30 46 45 |0, 0x038|0, 0x0FE| |00000410| 30 2c 20 30 78 30 37 43 | 30 2c 20 30 78 30 33 38 |0, 0x07C|0, 0x038| |00000420| 30 2c 20 30 78 30 31 30 | 30 2c 20 30 78 30 30 30 |0, 0x010|0, 0x000| |00000430| 30 2c 20 30 78 30 30 30 | 30 2c 0d 09 20 0d 09 20 |0, 0x000|0,.. .. | |00000440| 30 78 30 30 30 30 2c 20 | 30 78 30 30 30 30 2c 20 |0x0000, |0x0000, | |00000450| 30 78 30 31 30 30 2c 20 | 30 78 30 33 38 30 2c 20 |0x0100, |0x0380, | |00000460| 30 78 30 37 43 30 2c 20 | 30 78 30 46 45 30 2c 20 |0x07C0, |0x0FE0, | |00000470| 30 78 30 33 38 30 2c 20 | 30 78 30 33 38 30 2c 0d |0x0380, |0x0380,.| |00000480| 09 20 30 78 30 33 38 30 | 2c 20 30 78 30 33 38 30 |. 0x0380|, 0x0380| |00000490| 2c 20 30 78 30 46 45 30 | 2c 20 30 78 30 37 43 30 |, 0x0FE0|, 0x07C0| |000004a0| 2c 20 30 78 30 33 38 30 | 2c 20 30 78 30 31 30 30 |, 0x0380|, 0x0100| |000004b0| 2c 20 30 78 30 30 30 30 | 2c 20 30 78 30 30 30 30 |, 0x0000|, 0x0000| |000004c0| 2c 0d 09 20 0d 09 20 38 | 2c 20 37 7d 3b 0d 09 20 |,.. .. 8|, 7};.. | |000004d0| 0d 73 74 61 74 69 63 20 | 43 75 72 73 6f 72 20 68 |.static |Cursor h| |000004e0| 73 5f 63 75 72 73 20 3d | 09 09 09 09 09 09 2f 2f |s_curs =|......//| |000004f0| 20 48 6f 72 69 7a 2e 20 | 73 63 72 6f 6c 6c 65 72 | Horiz. |scroller| |00000500| 20 63 75 72 73 6f 72 0d | 09 7b 30 78 30 30 30 30 | cursor.|.{0x0000| |00000510| 2c 20 30 78 30 30 30 30 | 2c 20 30 78 30 30 30 30 |, 0x0000|, 0x0000| |00000520| 2c 20 30 78 30 30 30 30 | 2c 20 30 78 30 34 32 30 |, 0x0000|, 0x0420| |00000530| 2c 20 30 78 30 43 33 30 | 2c 20 30 78 31 46 46 38 |, 0x0C30|, 0x1FF8| |00000540| 2c 20 30 78 33 46 46 43 | 2c 0d 09 20 30 78 31 46 |, 0x3FFC|,.. 0x1F| |00000550| 46 38 2c 20 30 78 30 43 | 33 30 2c 20 30 78 30 34 |F8, 0x0C|30, 0x04| |00000560| 32 30 2c 20 30 78 30 30 | 30 30 2c 20 30 78 30 30 |20, 0x00|00, 0x00| |00000570| 30 30 2c 20 30 78 30 30 | 30 30 2c 20 30 78 30 30 |00, 0x00|00, 0x00| |00000580| 30 30 2c 20 30 78 30 30 | 30 30 2c 0d 09 20 0d 09 |00, 0x00|00,.. ..| |00000590| 20 30 78 30 30 30 30 2c | 20 30 78 30 30 30 30 2c | 0x0000,| 0x0000,| |000005a0| 20 30 78 30 30 30 30 2c | 20 30 78 30 30 30 30 2c | 0x0000,| 0x0000,| |000005b0| 20 30 78 30 34 32 30 2c | 20 30 78 30 43 33 30 2c | 0x0420,| 0x0C30,| |000005c0| 20 30 78 31 46 46 38 2c | 20 30 78 33 46 46 43 2c | 0x1FF8,| 0x3FFC,| |000005d0| 0d 09 20 30 78 31 46 46 | 38 2c 20 30 78 30 43 33 |.. 0x1FF|8, 0x0C3| |000005e0| 30 2c 20 30 78 30 34 32 | 30 2c 20 30 78 30 30 30 |0, 0x042|0, 0x000| |000005f0| 30 2c 20 30 78 30 30 30 | 30 2c 20 30 78 30 30 30 |0, 0x000|0, 0x000| |00000600| 30 2c 20 30 78 30 30 30 | 30 2c 20 30 78 30 30 30 |0, 0x000|0, 0x000| |00000610| 30 2c 0d 09 20 0d 09 20 | 37 2c 20 38 7d 3b 0d 09 |0,.. .. |7, 8};..| |00000620| 20 0d 73 74 61 74 69 63 | 20 43 75 72 73 6f 72 20 | .static| Cursor | |00000630| 67 72 6f 77 5f 63 75 72 | 73 20 3d 20 0d 09 7b 30 |grow_cur|s = ..{0| |00000640| 78 30 30 30 30 2c 20 30 | 78 30 30 30 30 2c 20 30 |x0000, 0|x0000, 0| |00000650| 78 33 46 30 30 2c 20 30 | 78 33 45 30 30 2c 20 30 |x3F00, 0|x3E00, 0| |00000660| 78 33 45 30 30 2c 20 30 | 78 33 46 30 30 2c 20 30 |x3E00, 0|x3F00, 0| |00000670| 78 33 46 38 30 2c 20 30 | 78 32 37 43 30 2c 0d 09 |x3F80, 0|x27C0,..| |00000680| 20 30 78 30 33 45 34 2c | 20 30 78 30 31 46 43 2c | 0x03E4,| 0x01FC,| |00000690| 20 30 78 30 30 46 43 2c | 20 30 78 30 30 37 43 2c | 0x00FC,| 0x007C,| |000006a0| 20 30 78 30 30 37 43 2c | 20 30 78 30 30 46 43 2c | 0x007C,| 0x00FC,| |000006b0| 20 30 78 30 30 30 30 2c | 20 30 78 30 30 30 30 2c | 0x0000,| 0x0000,| |000006c0| 0d 09 20 0d 09 20 30 78 | 30 30 30 30 2c 20 30 78 |.. .. 0x|0000, 0x| |000006d0| 30 30 30 30 2c 20 30 78 | 33 46 30 30 2c 20 30 78 |0000, 0x|3F00, 0x| |000006e0| 33 45 30 30 2c 20 30 78 | 33 45 30 30 2c 20 30 78 |3E00, 0x|3E00, 0x| |000006f0| 33 46 30 30 2c 20 30 78 | 33 46 38 30 2c 20 30 78 |3F00, 0x|3F80, 0x| |00000700| 32 37 43 30 2c 0d 09 20 | 30 78 30 33 45 34 2c 20 |27C0,.. |0x03E4, | |00000710| 30 78 30 31 46 43 2c 20 | 30 78 30 30 46 43 2c 20 |0x01FC, |0x00FC, | |00000720| 30 78 30 30 37 43 2c 20 | 30 78 30 30 37 43 2c 20 |0x007C, |0x007C, | |00000730| 30 78 30 30 46 43 2c 20 | 30 78 30 30 30 30 2c 20 |0x00FC, |0x0000, | |00000740| 30 78 30 30 30 30 2c 0d | 09 20 0d 09 20 38 2c 20 |0x0000,.|. .. 8, | |00000750| 38 7d 3b 0d 09 20 0d 73 | 74 61 74 69 63 20 43 75 |8};.. .s|tatic Cu| |00000760| 72 73 6f 72 20 73 63 72 | 61 77 6c 5f 63 75 72 73 |rsor scr|awl_curs| |00000770| 20 3d 20 0d 09 7b 30 78 | 30 30 30 43 2c 20 30 78 | = ..{0x|000C, 0x| |00000780| 30 30 31 32 2c 20 30 78 | 30 30 32 31 2c 20 30 78 |0012, 0x|0021, 0x| |00000790| 30 30 35 39 2c 20 30 78 | 30 30 42 41 2c 20 30 78 |0059, 0x|00BA, 0x| |000007a0| 30 31 31 34 2c 20 30 78 | 30 32 34 38 2c 20 30 78 |0114, 0x|0248, 0x| |000007b0| 30 34 39 30 2c 0d 09 20 | 30 78 30 39 32 30 2c 20 |0490,.. |0x0920, | |000007c0| 30 78 31 32 34 30 2c 20 | 30 78 32 34 38 30 2c 20 |0x1240, |0x2480, | |000007d0| 30 78 43 39 30 30 2c 20 | 30 78 39 32 30 30 2c 20 |0xC900, |0x9200, | |000007e0| 30 78 38 34 30 30 2c 20 | 30 78 38 38 30 30 2c 20 |0x8400, |0x8800, | |000007f0| 30 78 46 38 30 30 2c 0d | 09 20 0d 09 20 30 78 30 |0xF800,.|. .. 0x0| |00000800| 30 30 43 2c 20 30 78 30 | 30 31 45 2c 20 30 78 30 |00C, 0x0|01E, 0x0| |00000810| 30 33 46 2c 20 30 78 30 | 30 37 46 2c 20 30 78 30 |03F, 0x0|07F, 0x0| |00000820| 30 46 45 2c 20 30 78 30 | 31 46 43 2c 20 30 78 30 |0FE, 0x0|1FC, 0x0| |00000830| 33 46 38 2c 20 30 78 30 | 37 46 30 2c 0d 09 20 30 |3F8, 0x0|7F0,.. 0| |00000840| 78 30 46 45 30 2c 20 30 | 78 31 46 43 30 2c 20 30 |x0FE0, 0|x1FC0, 0| |00000850| 78 33 46 38 30 2c 20 30 | 78 46 46 30 30 2c 20 30 |x3F80, 0|xFF00, 0| |00000860| 78 46 45 30 30 2c 20 30 | 78 46 43 30 30 2c 20 30 |xFE00, 0|xFC00, 0| |00000870| 78 46 38 30 30 2c 20 30 | 78 46 38 30 30 2c 0d 09 |xF800, 0|xF800,..| |00000880| 20 0d 09 20 31 34 2c 20 | 30 7d 3b 0d 0d 73 74 61 | .. 14, |0};..sta| |00000890| 74 69 63 20 43 75 72 73 | 48 61 6e 64 6c 65 20 65 |tic Curs|Handle e| |000008a0| 64 69 74 5f 63 72 73 5f | 68 61 6e 64 3b 0d 73 74 |dit_crs_|hand;.st| |000008b0| 61 74 69 63 20 43 75 72 | 73 48 61 6e 64 6c 65 20 |atic Cur|sHandle | |000008c0| 77 61 69 74 5f 63 72 73 | 5f 68 61 6e 64 3b 0d 0d |wait_crs|_hand;..| |000008d0| 2f 2a 0d 20 2a 20 49 4e | 49 54 5f 43 55 52 53 28 |/*. * IN|IT_CURS(| |000008e0| 29 20 2d 20 49 6e 69 74 | 69 61 6c 69 7a 65 20 43 |) - Init|ialize C| |000008f0| 75 72 73 6f 72 73 0d 20 | 2a 0d 20 2a 20 53 65 74 |ursors. |*. * Set| |00000900| 73 20 74 68 65 20 63 75 | 72 73 6f 72 20 69 6e 69 |s the cu|rsor ini| |00000910| 74 69 61 6c 6c 79 20 74 | 6f 20 74 68 65 20 61 72 |tially t|o the ar| |00000920| 72 6f 77 2c 20 61 6e 64 | 20 6c 6f 61 64 73 20 74 |row, and| loads t| |00000930| 68 65 20 49 2d 62 65 61 | 6d 20 0d 20 2a 20 61 6e |he I-bea|m . * an| |00000940| 64 20 77 61 74 63 68 20 | 63 75 72 73 6f 72 73 20 |d watch |cursors | |00000950| 66 72 6f 6d 20 74 68 65 | 20 73 79 73 74 65 6d 20 |from the| system | |00000960| 72 65 73 6f 75 72 63 65 | 2e 0d 20 2a 2f 0d 69 6e |resource|.. */.in| |00000970| 69 74 5f 63 75 72 73 28 | 29 0d 09 7b 0d 09 23 49 |it_curs(|)..{..#I| |00000980| 6e 69 74 43 75 72 73 6f | 72 28 29 3b 09 09 09 09 |nitCurso|r();....| |00000990| 09 09 09 09 2f 2f 20 53 | 74 61 72 74 20 6f 66 66 |....// S|tart off| |000009a0| 20 77 69 74 68 20 74 68 | 65 20 61 72 72 6f 77 0d | with th|e arrow.| |000009b0| 09 65 64 69 74 5f 63 72 | 73 5f 68 61 6e 64 20 3d |.edit_cr|s_hand =| |000009c0| 20 28 43 75 72 73 48 61 | 6e 64 6c 65 29 23 47 65 | (CursHa|ndle)#Ge| |000009d0| 74 43 75 72 73 6f 72 28 | 31 29 3b 09 09 2f 2f 20 |tCursor(|1);..// | |000009e0| 4c 6f 61 64 20 49 2d 62 | 65 61 6d 0d 09 23 48 4e |Load I-b|eam..#HN| |000009f0| 6f 50 75 72 67 65 28 26 | 65 64 69 74 5f 63 72 73 |oPurge(&|edit_crs| |00000a00| 5f 68 61 6e 64 29 3b 09 | 09 09 2f 2f 20 4d 61 6b |_hand);.|..// Mak| |00000a10| 65 20 6e 6f 74 20 70 75 | 72 67 61 62 6c 65 0d 09 |e not pu|rgable..| |00000a20| 77 61 69 74 5f 63 72 73 | 5f 68 61 6e 64 20 3d 20 |wait_crs|_hand = | |00000a30| 28 43 75 72 73 48 61 6e | 64 6c 65 29 23 47 65 74 |(CursHan|dle)#Get| |00000a40| 43 75 72 73 6f 72 28 34 | 29 3b 09 09 2f 2f 20 4c |Cursor(4|);..// L| |00000a50| 6f 61 64 20 77 61 74 63 | 68 0d 09 23 48 4e 6f 50 |oad watc|h..#HNoP| |00000a60| 75 72 67 65 28 26 77 61 | 69 74 5f 63 72 73 5f 68 |urge(&wa|it_crs_h| |00000a70| 61 6e 64 29 3b 09 09 09 | 2f 2f 20 4d 61 6b 65 20 |and);...|// Make | |00000a80| 6e 6f 74 20 70 75 72 67 | 61 62 6c 65 0d 09 7d 0d |not purg|able..}.| |00000a90| 0d 2f 2a 0d 20 2a 20 55 | 50 44 5f 43 55 52 53 28 |./*. * U|PD_CURS(| |00000aa0| 29 20 2d 20 43 68 61 6e | 67 65 20 63 75 72 73 6f |) - Chan|ge curso| |00000ab0| 72 20 73 68 61 70 65 20 | 64 65 70 65 6e 64 69 6e |r shape |dependin| |00000ac0| 67 20 6f 6e 20 77 68 65 | 72 65 20 69 74 20 69 73 |g on whe|re it is| |00000ad0| 0d 20 2a 0d 20 2a 20 54 | 68 69 73 20 72 6f 75 74 |. *. * T|his rout| |00000ae0| 69 6e 65 20 63 68 61 6e | 67 65 73 20 74 68 65 20 |ine chan|ges the | |00000af0| 63 75 72 73 6f 72 20 61 | 73 20 69 74 20 69 73 20 |cursor a|s it is | |00000b00| 6d 6f 76 65 64 20 61 72 | 6f 75 6e 64 20 74 68 65 |moved ar|ound the| |00000b10| 20 0d 20 2a 20 73 63 72 | 65 65 6e 2e 20 20 43 68 | . * scr|een. Ch| |00000b20| 61 6e 67 65 73 20 6f 63 | 63 75 72 20 6f 6e 6c 79 |anges oc|cur only| |00000b30| 20 69 66 20 74 68 65 20 | 63 75 72 73 6f 72 20 69 | if the |cursor i| |00000b40| 6e 20 69 6e 20 74 68 65 | 20 66 72 6f 6e 74 6d 6f |n in the| frontmo| |00000b50| 73 74 0d 20 2a 20 28 61 | 63 74 69 76 65 29 20 77 |st. * (a|ctive) w| |00000b60| 69 6e 64 6f 77 2e 20 20 | 49 66 20 69 74 27 73 20 |indow. |If it's | |00000b70| 61 20 73 63 72 61 77 6c | 20 77 69 6e 64 6f 77 2c |a scrawl| window,| |00000b80| 20 74 68 65 20 64 6f 5f | 73 63 72 61 77 6c 20 72 | the do_|scrawl r| |00000b90| 6f 75 74 69 6e 65 0d 20 | 2a 20 69 73 20 61 6c 73 |outine. |* is als| |00000ba0| 6f 20 63 61 6c 6c 65 64 | 2e 0d 20 2a 2f 0d 75 70 |o called|.. */.up| |00000bb0| 64 5f 63 75 72 73 28 29 | 0d 09 7b 0d 09 50 6f 69 |d_curs()|..{..Poi| |00000bc0| 6e 74 20 63 70 74 3b 0d | 09 57 69 6e 64 6f 77 50 |nt cpt;.|.WindowP| |00000bd0| 74 72 20 63 77 70 3b 0d | 09 73 68 6f 72 74 20 77 |tr cwp;.|.short w| |00000be0| 5f 70 61 72 74 2c 20 63 | 5f 70 61 72 74 3b 0d 09 |_part, c|_part;..| |00000bf0| 43 6f 6e 74 72 6f 6c 48 | 61 6e 64 6c 65 20 63 68 |ControlH|andle ch| |00000c00| 3b 0d 09 0d 09 23 47 65 | 74 4d 6f 75 73 65 28 26 |;....#Ge|tMouse(&| |00000c10| 63 70 74 29 3b 09 09 09 | 09 09 09 09 09 2f 2f 20 |cpt);...|.....// | |00000c20| 4d 6f 75 73 65 20 6c 6f | 63 2e 20 28 6c 6f 63 61 |Mouse lo|c. (loca| |00000c30| 6c 20 63 6f 6f 72 64 27 | 73 29 0d 09 23 4c 6f 63 |l coord'|s)..#Loc| |00000c40| 61 6c 54 6f 47 6c 6f 62 | 61 6c 28 26 63 70 74 29 |alToGlob|al(&cpt)| |00000c50| 3b 09 09 09 09 09 09 2f | 2f 20 43 6f 6e 76 65 72 |;....../|/ Conver| |00000c60| 74 20 74 6f 20 67 6c 6f | 62 61 6c 20 63 6f 6f 72 |t to glo|bal coor| |00000c70| 64 27 73 3b 0d 09 77 5f | 70 61 72 74 20 3d 20 28 |d's;..w_|part = (| |00000c80| 73 68 6f 72 74 29 23 46 | 69 6e 64 57 69 6e 64 6f |short)#F|indWindo| |00000c90| 77 28 26 63 70 74 2c 20 | 26 63 77 70 29 3b 09 2f |w(&cpt, |&cwp);./| |00000ca0| 2f 20 57 68 65 72 65 20 | 69 6e 20 77 68 61 74 20 |/ Where |in what | |00000cb0| 77 69 6e 64 6f 77 3f 0d | 09 0d 09 69 66 28 63 77 |window?.|...if(cw| |00000cc0| 70 20 3d 3d 20 4e 55 4c | 4c 20 7c 7c 20 63 77 70 |p == NUL|L || cwp| |00000cd0| 20 21 3d 20 64 77 70 2d | 3e 77 70 29 09 09 2f 2f | != dwp-|>wp)..//| |00000ce0| 20 49 66 20 6e 6f 74 20 | 69 6e 20 6c 69 76 65 20 | If not |in live | |00000cf0| 66 72 6f 6e 74 20 77 69 | 6e 64 6f 77 0d 09 09 7b |front wi|ndow...{| |00000d00| 0d 09 09 23 49 6e 69 74 | 43 75 72 73 6f 72 28 29 |...#Init|Cursor()| |00000d10| 3b 09 09 09 09 09 09 09 | 09 2f 2f 20 43 75 72 73 |;.......|.// Curs| |00000d20| 6f 72 20 69 73 20 74 68 | 65 20 61 72 72 6f 77 0d |or is th|e arrow.| |00000d30| 09 09 72 65 74 75 72 6e | 3b 0d 09 09 7d 0d 09 0d |..return|;...}...| |00000d40| 09 2f 2f 0d 09 2f 2f 20 | 43 75 72 73 6f 72 20 69 |.//..// |Cursor i| |00000d50| 6e 20 6c 69 76 65 20 66 | 72 6f 6e 74 20 77 69 6e |n live f|ront win| |00000d60| 64 6f 77 2e 0d 09 2f 2f | 0d 09 73 77 69 74 63 68 |dow...//|..switch| |00000d70| 28 77 5f 70 61 72 74 29 | 09 09 09 09 09 09 09 09 |(w_part)|........| |00000d80| 09 2f 2f 20 44 69 73 70 | 61 74 63 68 20 6f 6e 20 |.// Disp|atch on | |00000d90| 77 68 61 74 20 70 61 72 | 74 20 6f 66 20 64 65 73 |what par|t of des| |00000da0| 6b 0d 09 09 7b 0d 09 09 | 63 61 73 65 20 69 6e 44 |k...{...|case inD| |00000db0| 65 73 6b 3a 09 09 09 09 | 09 09 09 09 2f 2f 20 4f |esk:....|....// O| |00000dc0| 75 74 20 6f 6e 20 74 68 | 65 20 44 65 73 6b 74 6f |ut on th|e Deskto| |00000dd0| 70 0d 09 09 63 61 73 65 | 20 69 6e 4d 65 6e 75 42 |p...case| inMenuB| |00000de0| 61 72 3a 09 09 09 09 09 | 09 09 2f 2f 20 4d 65 6e |ar:.....|..// Men| |00000df0| 75 20 42 61 72 0d 09 09 | 63 61 73 65 20 69 6e 53 |u Bar...|case inS| |00000e00| 79 73 57 69 6e 64 6f 77 | 3a 09 09 09 09 09 09 09 |ysWindow|:.......| |00000e10| 2f 2f 20 44 65 73 6b 20 | 41 63 63 65 73 73 6f 72 |// Desk |Accessor| |00000e20| 79 0d 09 09 63 61 73 65 | 20 69 6e 47 6f 41 77 61 |y...case| inGoAwa| |00000e30| 79 3a 09 09 09 09 09 09 | 09 09 2f 2f 20 47 6f 20 |y:......|..// Go | |00000e40| 61 77 61 79 20 62 6f 78 | 0d 09 09 09 23 49 6e 69 |away box|....#Ini| |00000e50| 74 43 75 72 73 6f 72 28 | 29 3b 09 09 09 09 09 09 |tCursor(|);......| |00000e60| 09 2f 2f 20 2e 2e 2e 20 | 61 6c 6c 20 75 73 65 20 |.// ... |all use | |00000e70| 74 68 65 20 41 72 72 6f | 77 0d 09 09 09 62 72 65 |the Arro|w....bre| |00000e80| 61 6b 3b 0d 09 09 09 0d | 09 09 63 61 73 65 20 69 |ak;.....|..case i| |00000e90| 6e 44 72 61 67 3a 09 09 | 09 09 09 09 09 09 2f 2f |nDrag:..|......//| |00000ea0| 20 44 72 61 67 20 72 65 | 67 69 6f 6e 0d 09 09 09 | Drag re|gion....| |00000eb0| 23 53 65 74 43 75 72 73 | 6f 72 28 26 64 72 61 67 |#SetCurs|or(&drag| |00000ec0| 5f 63 75 72 73 29 3b 09 | 09 09 09 2f 2f 20 55 73 |_curs);.|...// Us| |00000ed0| 65 20 64 72 61 67 20 63 | 75 72 73 6f 72 0d 09 09 |e drag c|ursor...| |00000ee0| 09 62 72 65 61 6b 3b 0d | 09 09 09 0d 09 09 63 61 |.break;.|......ca| |00000ef0| 73 65 20 69 6e 47 72 6f | 77 3a 09 09 09 09 09 09 |se inGro|w:......| |00000f00| 09 09 2f 2f 20 47 72 6f | 77 20 72 65 67 69 6f 6e |..// Gro|w region| |00000f10| 0d 09 09 09 23 53 65 74 | 43 75 72 73 6f 72 28 26 |....#Set|Cursor(&| |00000f20| 67 72 6f 77 5f 63 75 72 | 73 29 3b 09 09 09 09 2f |grow_cur|s);..../| |00000f30| 2f 20 55 73 65 20 67 72 | 6f 77 20 63 75 72 73 6f |/ Use gr|ow curso| |00000f40| 72 0d 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 09 0d |r....bre|ak;.....| |00000f50| 09 09 63 61 73 65 20 69 | 6e 43 6f 6e 74 65 6e 74 |..case i|nContent| |00000f60| 3a 09 09 09 09 09 09 09 | 2f 2f 20 43 6f 6e 74 65 |:.......|// Conte| |00000f70| 6e 74 20 72 65 67 69 6f | 6e 20 2e 2e 2e 0d 09 09 |nt regio|n ......| |00000f80| 09 23 47 6c 6f 62 61 6c | 54 6f 4c 6f 63 61 6c 28 |.#Global|ToLocal(| |00000f90| 26 63 70 74 29 3b 09 09 | 09 09 2f 2f 20 43 6f 6e |&cpt);..|..// Con| |00000fa0| 76 65 72 74 20 62 61 63 | 6b 20 74 6f 20 6c 6f 63 |vert bac|k to loc| |00000fb0| 61 6c 20 63 6f 6f 72 64 | 27 73 0d 0d 09 09 09 69 |al coord|'s.....i| |00000fc0| 66 28 64 77 70 2d 3e 74 | 65 5f 68 61 6e 64 6c 65 |f(dwp->t|e_handle| |00000fd0| 20 3d 3d 20 4e 55 4c 4c | 29 09 09 09 2f 2f 20 49 | == NULL|)...// I| |00000fe0| 66 20 73 63 72 61 77 6c | 20 77 69 6e 64 6f 77 0d |f scrawl| window.| |00000ff0| 09 09 09 09 7b 0d 09 09 | 09 09 23 53 65 74 43 75 |....{...|..#SetCu| |00001000| 72 73 6f 72 28 26 73 63 | 72 61 77 6c 5f 63 75 72 |rsor(&sc|rawl_cur| |00001010| 73 29 3b 09 09 2f 2f 20 | 53 68 6f 77 20 73 63 72 |s);..// |Show scr| |00001020| 61 77 6c 20 70 65 6e 63 | 69 6c 0d 09 09 09 09 64 |awl penc|il.....d| |00001030| 6f 5f 73 63 72 61 77 6c | 28 29 3b 09 09 09 09 09 |o_scrawl|();.....| |00001040| 09 2f 2f 20 44 4f 20 53 | 43 52 41 57 4c 49 4e 47 |.// DO S|CRAWLING| |00001050| 20 48 45 52 45 21 21 0d | 09 09 09 09 62 72 65 61 | HERE!!.|....brea| |00001060| 6b 3b 09 09 09 09 09 09 | 09 09 2f 2f 20 61 6e 64 |k;......|..// and| |00001070| 20 74 68 61 74 27 73 20 | 69 74 2e 0d 09 09 09 09 | that's |it......| |00001080| 7d 0d 0d 09 09 09 69 66 | 28 23 50 74 49 6e 52 65 |}.....if|(#PtInRe| |00001090| 63 74 28 26 63 70 74 2c | 20 26 28 28 2a 28 64 77 |ct(&cpt,| &((*(dw| |000010a0| 70 2d 3e 74 65 5f 68 61 | 6e 64 6c 65 29 29 2d 3e |p->te_ha|ndle))->| |000010b0| 76 69 65 77 52 65 63 74 | 29 29 29 0d 09 09 09 09 |viewRect|))).....| |000010c0| 23 53 65 74 43 75 72 73 | 6f 72 28 2a 65 64 69 74 |#SetCurs|or(*edit| |000010d0| 5f 63 72 73 5f 68 61 6e | 64 29 3b 09 2f 2f 20 49 |_crs_han|d);.// I| |000010e0| 2d 42 65 61 6d 20 69 66 | 20 69 6e 20 65 64 69 74 |-Beam if| in edit| |000010f0| 61 62 6c 65 20 74 65 78 | 74 0d 09 09 09 65 6c 73 |able tex|t....els| |00001100| 65 09 09 09 09 09 09 09 | 09 09 09 2f 2f 20 4d 75 |e.......|...// Mu| |00001110| 73 74 20 62 65 20 69 6e | 20 61 20 73 63 72 6f 6c |st be in| a scrol| |00001120| 6c 65 72 0d 09 09 09 09 | 7b 0d 09 09 09 09 23 46 |ler.....|{.....#F| |00001130| 69 6e 64 43 6f 6e 74 72 | 6f 6c 28 26 63 70 74 2c |indContr|ol(&cpt,| |00001140| 20 63 77 70 2c 20 26 63 | 68 29 3b 20 2f 2f 20 57 | cwp, &c|h); // W| |00001150| 68 69 63 68 20 63 6f 6e | 74 72 6f 6c 3f 0d 09 09 |hich con|trol?...| |00001160| 09 09 69 66 28 63 68 20 | 3d 3d 20 64 77 70 2d 3e |..if(ch |== dwp->| |00001170| 76 73 5f 68 61 6e 64 6c | 65 29 09 09 2f 2f 20 49 |vs_handl|e)..// I| |00001180| 66 20 76 65 72 74 69 63 | 61 6c 20 73 63 72 6f 6c |f vertic|al scrol| |00001190| 6c 65 72 0d 09 09 09 09 | 09 23 53 65 74 43 75 72 |ler.....|.#SetCur| |000011a0| 73 6f 72 28 26 76 73 5f | 63 75 72 73 29 3b 09 09 |sor(&vs_|curs);..| |000011b0| 2f 2f 20 55 73 65 20 76 | 65 72 74 69 63 61 6c 20 |// Use v|ertical | |000011c0| 61 72 72 6f 77 73 0d 09 | 09 09 09 65 6c 73 65 20 |arrows..|...else | |000011d0| 69 66 28 63 68 20 3d 3d | 20 64 77 70 2d 3e 68 73 |if(ch ==| dwp->hs| |000011e0| 5f 68 61 6e 64 6c 65 29 | 09 2f 2f 20 49 66 20 68 |_handle)|.// If h| |000011f0| 6f 72 69 7a 20 73 63 72 | 6f 6c 6c 65 72 0d 09 09 |oriz scr|oller...| |00001200| 09 09 09 23 53 65 74 43 | 75 72 73 6f 72 28 26 68 |...#SetC|ursor(&h| |00001210| 73 5f 63 75 72 73 29 3b | 09 09 2f 2f 20 55 73 65 |s_curs);|..// Use| |00001220| 20 68 6f 72 69 7a 20 61 | 72 72 6f 77 73 0d 09 09 | horiz a|rrows...| |00001230| 09 09 65 6c 73 65 09 09 | 09 09 09 09 09 09 09 2f |..else..|......./| |00001240| 2f 20 4e 6f 20 6d 61 6e | 27 73 20 6c 61 6e 64 20 |/ No man|'s land | |00001250| 2e 2e 2e 0d 09 09 09 09 | 09 23 49 6e 69 74 43 75 |........|.#InitCu| |00001260| 72 73 6f 72 28 29 3b 09 | 09 09 09 09 2f 2f 20 55 |rsor();.|....// U| |00001270| 73 65 20 74 68 65 20 61 | 72 72 6f 77 0d 09 09 09 |se the a|rrow....| |00001280| 09 7d 0d 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 0d |.}....br|eak;....| |00001290| 09 09 64 65 66 61 75 6c | 74 3a 0d 09 09 09 23 49 |..defaul|t:....#I| |000012a0| 6e 69 74 43 75 72 73 6f | 72 28 29 3b 0d 09 09 7d |nitCurso|r();...}| |000012b0| 0d 09 7d 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |..}.....|........| |000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001300| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 d4 |........|........| |00001310| 44 4f 57 2e 41 53 4d 00 | 04 45 64 69 74 08 43 20 |DOW.ASM.|.Edit.C | |00001320| 44 45 56 20 31 3a 76 20 | 31 3a 20 43 20 44 65 6d |DEV 1:v |1: C Dem| |00001330| 0c 44 65 6d 6f 43 75 72 | 73 6f 72 2e 43 72 02 00 |.DemoCur|sor.Cr..| |00001340| 00 00 54 45 58 54 45 44 | 49 54 01 00 00 40 00 40 |..TEXTED|IT...@.@| |00001350| 00 00 54 45 58 54 45 44 | 49 54 01 00 00 40 00 40 |..TEXTED|IT...@.@| |00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001370| 00 00 98 22 43 fb 00 00 | 12 34 00 00 01 ea 28 29 |..."C...|.4....()| |00001380| 20 2d 20 43 72 65 61 74 | 65 20 61 6e 20 22 65 64 | - Creat|e an "ed| |00001390| 69 74 20 77 69 6e 64 6f | 77 22 20 77 69 74 68 20 |it windo|w" with | |000013a0| 61 6c 6c 20 6f 66 20 74 | 68 65 20 75 73 75 61 6c |all of t|he usual| |000013b0| 20 6a 75 6e 6b 0d 20 2a | 0d 20 2a 20 41 6c 6c 6f | junk. *|. * Allo| |000013c0| 63 61 74 65 73 20 61 20 | 57 43 42 2c 20 63 72 65 |cates a |WCB, cre| |000013d0| 61 74 65 73 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |ates the| window | |000013e0| 66 72 6f 6d 20 61 20 72 | 65 73 6f 75 72 63 65 20 |from a r|esource | |000013f0| 74 65 6d 70 6c 61 74 65 | 2c 0d 20 2a 20 63 6f 6d |template|,. * com| |00001400| 00 00 00 0a 00 09 06 4d | 6f 6e 61 63 6f 54 00 00 |.......M|onacoT..| |00001410| 00 04 00 06 00 03 00 00 | 01 00 00 00 01 16 00 00 |........|........| |00001420| 00 16 00 00 00 d4 00 00 | 4e 1c 00 98 00 00 00 1c |........|N.......| |00001430| 00 46 00 01 45 46 4e 54 | 00 00 00 12 45 54 41 42 |.F..EFNT|....ETAB| |00001440| 00 00 00 1e 03 eb 00 00 | 00 00 00 00 00 00 eb ac |........|........| |00001450| 03 ec 00 47 00 00 00 0e | 00 00 eb b4 46 4f 42 4a |...G....|....FOBJ| |00001460| ff ff ff ff 00 40 01 aa | 00 40 01 ac 00 40 01 ae |.....@..|.@...@..| |00001470| 00 40 01 b0 00 40 01 b2 | 00 40 01 b4 00 40 01 b6 |.@...@..|.@...@..| |00001480| 00 40 01 b8 00 40 10 18 | 00 40 01 bc 00 40 01 be |.@...@..|.@...@..| |00001490| 00 40 01 be 00 40 01 be | 00 40 01 be 00 40 01 be |.@...@..|.@...@..| |000014a0| 00 40 01 46 4f 42 4a ff | ff ff ff 00 40 01 aa 00 |.@.FOBJ.|....@...| |000014b0| 40 01 ac 00 40 01 ae 00 | 40 01 b0 00 40 01 b2 00 |@...@...|@...@...| |000014c0| 40 01 b4 00 40 01 b6 00 | 40 01 b8 00 40 10 18 00 |@...@...|@...@...| |000014d0| 40 01 bc 00 40 01 be 00 | 40 01 be 00 40 01 be 00 |@...@...|@...@...| |000014e0| 40 01 be 00 40 01 be 00 | 40 01 00 00 00 00 00 00 |@...@...|@.......| |000014f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+